<template>
  <div class="wrapper">FetchComponent</div>
</template>

<script>
export default {
  name: "FetchComponent",
  components: {},
  props: {},
  data() {
    return {};
  },
  watch: {},
  computed: {},
  methods: {},
  created() {
    // 通过 fetch 获取数据
    fetch("https://api.github.com/users")
      .then((res) => res.json())
      .then((res) => {
        console.log(res);
      });
  },
  mounted() {},
};
</script>
<style scoped>
.wrapper {
}
</style>
